var http_request=false;
function send_request(url,poststr)
{
		//alert(url);
//	alert(poststr);	
//alert('ajax'+url+'type='+type);	
	if(window.XMLHttpRequest)
	{
		http_request=new XMLHttpRequest();
		if(http_request.overrideMimeType)
		{
			http_request.overrideMimeType('text/xml');	
		}
		
	}
	else
	 if(window.ActiveXObject)
	{
			try
			{
				http_request=new ActiveXObject('Msxml2.XMLHTTP');
			}catch(e){}
			{
				try
				{
					http_request=new ActiveXObject('Microsoft.XMLHTTP');
				}catch(e){}
			}
	}
	
	if(!http_request)
	{
		alert('can not create ajax object')	;
	}
	
	
	http_request.open('POST',url,true);
	http_request.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	http_request.send(poststr);//发送值
	http_request.onreadystatechange=processRequest;
}

/*分析btchina的url*/
function processRequest()
{		
	//alert(http_request2.readyState);
	if(http_request.readyState==4)
	{
	//	alert('aaaa');
		//alert(http_request.status);
		if(http_request.status==200)
		{
			//alert(http_request.responseText);
			ajaxresponse(http_request.responseText);
		}
		else
		{
		alert('can not process request');
		}
	}
}

